#include "cEmuScript.h"

cEmuScript::cEmuScript()
{
	this->m_ActionManager = NULL;
	this->m_Trigger = NULL;
	this->m_ProcessEngine = NULL;
	this->m_Variable = NULL;
}

cEmuScript::~cEmuScript(void)
{
	this->Free();
}

void cEmuScript::Free()
{
	return;
}

void cEmuScript::Init(cBehaviorHandler *ActionManager, cTrigger *Trigger,
					  cProcessEngine *ProcessEngine, cVariableHandler *Variable)
{
	this->m_ActionManager=ActionManager;
	this->m_ProcessEngine=ProcessEngine;
	this->m_Trigger=Trigger;
	this->m_Variable=Variable;

	return;
}

void cEmuScript::Test()
{
	//this->m_ActionManager->BehDefStart();
	//this->m_ActionManager->BehDefFlag("myfirststep");
	//this->m_ActionManager->BehDefRuleS(new JudgeIDExist("myfirstwindow",FRAME_MYWINDOW,EXTRA_REVERSE));
	//this->m_ActionManager->BehDefRuleE(new JudgeIDExist("myfirstwindow",FRAME_MYWINDOW));
	//this->m_ActionManager->BehDefAction(new ProcBuildWin("myfirstwindow"));
	//this->m_ActionManager->BehDefEnd();

	//this->m_ActionManager->BehDefStart();
	//this->m_ActionManager->BehDefFlag("MoveMyWin");
	//this->m_ActionManager->BehDefRuleS(new JudgeWinCooX("myfirstwindow",0,COMPARE_EQUAL));
	//this->m_ActionManager->BehDefRuleS(new JudgeWinCooY("myfirstwindow",0,COMPARE_EQUAL));
	//this->m_ActionManager->BehDefRuleE(new JudgeWinCooX("myfirstwindow",300,COMPARE_EQUAL));
	//this->m_ActionManager->BehDefRuleE(new JudgeWinCooY("myfirstwindow",300,COMPARE_EQUAL));
	//this->m_ActionManager->BehDefAction(new ProcMoveWin("myfirstwindow",1,3,300,300));
	//this->m_ActionManager->BehDefEnd();

	//this->m_ActionManager->BehDefStart();
	//this->m_ActionManager->BehDefFlag("buildwindow2");
	//this->m_ActionManager->BehDefRuleS(new JudgeIDExist("mywindow2",FRAME_MYWINDOW,EXTRA_REVERSE));
	//this->m_ActionManager->BehDefRuleE(new JudgeIDExist("mywindow2",FRAME_MYWINDOW));
	//this->m_ActionManager->BehDefAction(new ProcBuildWin("mywindow2",200,200,50,50));
	//this->m_ActionManager->BehDefEnd();

	//this->m_ActionManager->BehDefStart();
	//this->m_ActionManager->BehDefFlag("MoveWindow2");
	//this->m_ActionManager->BehDefRuleS(new JudgeIDExist("mywindow2",FRAME_MYWINDOW));
	//this->m_ActionManager->BehDefRuleE(new JudgeWinCooX("mywindow2",0,COMPARE_EQUAL));
	//this->m_ActionManager->BehDefRuleE(new JudgeWinCooY("mywindow2",50,COMPARE_EQUAL));
	//this->m_ActionManager->BehDefAction(new ProcMoveWin("mywindow2",1,3,0,50));
	//this->m_ActionManager->BehDefEnd();


	//this->m_ActionManager->BehMakeDeal("myfirststep");
	//this->m_ActionManager->BehMakeDeal("MoveMyWin");
	//this->m_ActionManager->BehMakeDeal("buildwindow2");
	//this->m_ActionManager->BehMakeDeal("MoveWindow2");

}